package com.pyl.devtools.code.form;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import lombok.Data;

/**
 * 封装生成数据
 * 
 * @author 灵魂贰婶
 * @date 2018/10/23
 */
@Data
public class Generate {

	@NotBlank(message = "请输入作者名称")
	private String author;

	@NotBlank(message = "请输入逆向后保存路径")
	private String location ;
	
	@NotBlank(message = "请输入jdbc驱动类名如：com.mysql.jdbc.Driver")
	private String jdbcDriver ;

	@NotBlank(message = "请输入jdbcurl")
	private String jdbcUrl ;
//	private String jdbcUrl = "jdbc:mysql://127.0.0.1:3306/ling?useSSL=false&characterEncoding=utf-8&serverTimezone=GMT%2B8";

	@NotBlank(message = "请输入数据库用户名")
	private String user ;
	
	@NotBlank(message = "请输入数据库密码")
	private String password ;

	@NotBlank(message = "请输入项目基础包以 com.pyl.模块名 ")
	private String basepackage ;

	@NotNull(message = "请输入要逆向的表名称")
	private String tables ;

}
